package cn.jiemusic.contexts;

public class UserContext {
    private static final ThreadLocal<String> tl = new ThreadLocal<>();


    public static void setCode(String code) {
        tl.set(code);
    }

    public static String getUser() {
        return tl.get();
    }


    public static void removeUser(){
        tl.remove();
    }
}
